package com.lizemin.filter;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @author lzm
 * @date 2025/4/2 21:17
 * @description
 */
@Slf4j
@WebFilter("/*")
public class Afilter implements Filter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        log.info("Afilter中chain.doFilter(request, response)之前的日志");

        chain.doFilter(request, response);

        log.info("Afilter中chain.doFilter(request, response)之后的日志");

    }
}
